// pages/shopManager/shopGrow/shopGrowDetail/shopGrowDetail.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        nowDate: '',
        shopGrowIndex: null,
        shopGrowImg: [
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-1.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-9.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-2.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-3.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-4.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-5.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-6.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-7.jpg',
            'https://mozi.bailingyoupin.com/static/images/wx_sm/home/shop-grow-img-8.jpg'
        ]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        this.setData({
            nowDate: new Date().getTime(),
            shopGrowIndex: options.index
        })
    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function() {

    },

    goManager: function() {
        switch (this.data.shopGrowIndex) {
            case '0':
                wx.navigateTo({
                    url: '/pages/shopManager/shopAudit/step0/step0'
                })
                break
            case '1':
                wx.navigateTo({
                    url: '/pages/shopManager/shopInfo/shopInfo'
                })
                break
            case '2':
                wx.navigateTo({
                    url: '/pages/shopManager/bannerManager/bannerList/bannerList'
                })
                break
            case '3':
                wx.navigateTo({
                    url: '/pages/shopVideo/shopVideoManager/shopVideoManager'
                })
                break
            case '4':
                wx.navigateTo({
                    url: '/pages/shopManager/goodsManager/goodsManager/goodsManager?type=normal'
                })
                break
            case '5':
                wx.navigateTo({
                    url: '/pages/shopManager/goodsManager/goodsManager/goodsManager?type=vip'
                })
                break
            case '6':
                wx.navigateTo({
                    url: '/pages/shopOrders/orderList/orderList'
                })
                break
            case '7':
                wx.navigateTo({
                    url: '/pages/shopOrders/orderList/orderList'
                })
                break
            case '8':
                wx.navigateTo({
                    url: '/pages/shopManager/accountManager/accountMoney/accountMoney/accountMoney'
                })
                break
        }
    }
})